﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsForms.Admin
{
    public partial class FormTimGiaiDau : Form
    {
        public static string data;
        public static bool state = false;
        public FormTimGiaiDau()
        {
            InitializeComponent();
        }

        private void btntim_Click(object sender, EventArgs e)
        {
            data = tbtim.Text;
            state = true;
            this.Close();
        }

        private void FormTimGiaiDau_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
                btntim.PerformClick();
        }
    }
}
